package com.avantis.admin.service;

import com.avantis.common.entity.Customer;
import com.avantis.common.entity.query.CustomerQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Sort;

import java.util.List;

/**
* @Description:    java类作用描述
* @Author:         kirago
* @CreateDate:     2019/1/14 2:20 PM
* @UpdateRemark:   修改内容
* @Version:        1.0
*/

public interface CustomerService {
    
    boolean checkByCustomerCode(String cum);

    Page<Customer> findCustomerCriteria(CustomerQuery customerQuery);

//    TODO 分页排序
//    Page<Customer> getPageSort(Integer pageNum,Integer pageLimit);
    Customer findOne(String customerId);

    void saveCustomer(Customer customer);

    void deleteCustomer(String customerId);

    void modifyCustomer(Customer customer);
}
